package com.ruoyi.system.wnjk.domain.po;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * {
 *     "msg": "成功",
 *     "success": true,
 *     "code": 200,
 *     "data": {
 *         "cpCode": "SF",// 快递公司编码
 *         "mailNo": "SF13xxx",//快递编号
 *         "theLastTime": "2023-04-21 19:06:47",//运单号物流流转当前最新变更时间
 *         "cpMobile": "95338",//快递公司电话
 *         "theLastMessage": "快件到达 【贵阳双龙中转场】",//运单号物流流转当前最新描述
 *         "logisticsCompanyName": "顺丰快递",//快递公司名称
 *         "cpUrl": "http://www.sf-express.com",//快递公司官网
 *         "logisticsStatusDesc": "运输中",//运单号当前物流状态文字描,
 *         "logisticsTraceDetailList": [
 *             {
 *                 "areaCode": "325000",//非必须，当前节点所在地址行政编码
 *                 "areaName": "温州市",//非必须，当前节点所在地区，省,市,区或省,市
 *                 "subLogisticsStatus": "ACCEPT",//物流流转子状态
 *                 "time": 1718767062000,//时间,单位毫秒
 *                 "timeDesc": "2024-09-24 16:46:58", //时间
 *                 "logisticsStatus": "ACCEPT",//物流流转状态
 *                 "desc": "顺丰速运 已收取快件"//物流流转描述
 *             },
 *             {
 *                 "areaCode": "315000",
 *                 "areaName": "宁波市",
 *                 "subLogisticsStatus": "AGENT_SIGN",
 *                 "time": 1718849806000,
 *                 "timeDesc": "2024-09-23 22:46:58",
 *                 "logisticsStatus": "SIGN",
 *                 "desc": "您的快件代签收（家门口），如有疑问请电联快递员【杨***，电话：19****237】，感谢您使用顺丰，期待再次为您服务。（主单总件数：1件）"
 *             }
 *         ],
 *         "logisticsStatus": "SIGN"
 *     }
 * }
 *
 * 物流主状态 logisticsStatus  状态描述
 * WAIT_ACCEPT  待揽收
 * ACCEPT 已揽收
 * TRANSPORT 运输中
 * DELIVERING 派件中
 * AGENT_SIGN 已代签收
 * SIGN 已签收
 * FAILED  包裹异常
 * 状态链接下载地址 https://api-mall.oss-cn-hangzhou.aliyuncs.com/kz/wl.png
 */
public class TripartiteLogistics {
    @JsonProperty("msg")
    private String msg;
    @JsonProperty("success")
    private Boolean success;
    @JsonProperty("code")
    private Long code;
    @JsonProperty("data")
    private TripartiteLogisticsData data;

    public TripartiteLogistics() {
    }

    public TripartiteLogistics(String msg, Boolean success, Long code, TripartiteLogisticsData data) {
        this.msg = msg;
        this.success = success;
        this.code = code;
        this.data = data;
    }

    public String getMsg(){
        return msg;
    }

    public void setMsg(String msg){
        this.msg=msg;
    }

    public Boolean getSuccess(){
        return success;
    }

    public void setSuccess(Boolean success){
        this.success=success;
    }

    public Long getCode(){
        return code;
    }

    public void setCode(Long code){
        this.code=code;
    }

    public TripartiteLogisticsData getData(){
        return data;
    }

    public void setData(TripartiteLogisticsData data){
        this.data=data;
    }

    @Override
    public String toString() {
        return "TripartiteLogistics{" +
                "msg='" + msg + '\'' +
                ", success=" + success +
                ", code=" + code +
                ", data=" + data +
                '}';
    }
}
